package com.kymatrix.kycarbon.xsmd.common.config;

import com.kymatrix.kycarbon.xsmd.common.interceptor.OperateLogInterceptor;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Component
public class WebConfiguration implements WebMvcConfigurer {
    
    @Resource
    private OperateLogInterceptor operateLogInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(operateLogInterceptor);
    }

}
